<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>管理中心</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
</head>
<body>
<!--{include file="top.htm"}-->
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="150" valign="top"><!--{include file="left.htm"}--></td>
<td valign="top">
<div class='title'>
<a href="?action=content&do=category_list&channel_id=<!--{$smarty.request.channel_id}-->">分类列表</a>
&raquo;&nbsp;<!--{if $mode=='insert'}-->添加分类<!--{else}-->编辑分类<!--{/if}--></div>
<div class='item'>
<form action="?action=content&do=category_<!--{$mode}-->" method="post" enctype="multipart/form-data" name="category_info">

	<table width="100%">
	
		<tr>
		<td width="100" height="30">上级分类：</td>
		<td>
		<select name="parent_id">
		<option value="0">设为根分类</option>{$category_list}
		</select>
		</td>
		</tr>
		<tr>
		<td width="100" height="30">分类名称：</td>
		<td><input type="text" name="category_name" size="40" value="<!--{$category.name|escape:html}-->" class="input"/></td>
		</tr>
		<tr>
		<td width="100" height="30">分类排序：</td>
		<td><input type="text" name="category_sort" size="40" value="<!--{$category.sort}-->" class="input"/></td>
		</tr>

		<tr>
		<td height="30">分类状态：</td>
		<td>
		<label><input type="radio" name="category_state" value="1" {if $category.state==1}checked{/if} /> 正常</label>
		<label><input type="radio" name="category_state" value="0" {if $category.state==0}checked{/if} /> 锁定</label>
		</td>
		</tr>	

		<tr>
		<td width="100" height="30">&nbsp;</td>
		<td><input type="submit" value="提交" class="button"/></td>
		</tr>
		</table>
		<input type="hidden" name="category_id" value="<!--{$category.id}-->"/>
		<input type="hidden" name="channel_id" value="<!--{$smarty.request.channel_id}-->"/>
		</form>
</div>
</td>
</tr>
</table>
</body>
</html>
